package com.hrt.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller

public class IdGenaratorControllor {

	
	private final String tableName="TEST";
	
	@Autowired
	private CodeGenarateService svr;
	
	@RequestMapping("/idGenatate")
	public void genarate(String tableName)
	{
		System.out.println("next Id is "+svr.genarate(tableName));
		System.out.println("Id Genatate successfully");
	}
}
